class LoginEvent {
  String username;

  // 形式参赛构造函数
  LoginEvent(this.username);
}

class CollectEvent {
  int id;
  bool collect;

  CollectEvent(this.id, this.collect);
}